package com.prig.base.entity;

import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Table(name="rolePermissionRelation")
public class RolePermissionRelation implements Serializable {

    @EmbeddedId
    private RolePermissionRelationId id;

    public RolePermissionRelation() {
    }

    public RolePermissionRelation(RolePermissionRelationId id) {
        this.id = id;
    }

    public RolePermissionRelationId getId() {
        return id;
    }

    public void setId(RolePermissionRelationId id) {
        this.id = id;
    }
}
